import { ForbiddenException, HttpException, HttpStatus, Injectable } from "@nestjs/common";

@Injectable()
export class UserService{
//查找用户
async searchUsers(){
  throw new ForbiddenException;
  return [];
}
//获取用户
async getUser(id:number){
    return{
        id,
        username:'张三',
        age:33,
        gender:'男',
        createTime:'2025-10-13 00:00:00:',
        updateTime:'2025-10-13 00:00:00:',

    }
  }
}
